add All
Deprecated
Use 'add_all' instead
Insert all elements from a collection at the specified index. Any elements previously occurring at and after the specified index have their indices increased by the size of the given collection. The size of the list increases by the size of the given collection.
Note that for a list my_list
:
my_list.add_all(my_list.size(), x)
"appends" the elements of the collectionx
to the end of the listmy_list.add_all(my_list.size() + 1, x)
throws an exception
Note also that my_list.add_all(my_list.size(), x)
is equivalent to my_list.add_all(x)
(inherited from collection<T>
).
Alias
Return
true
Since
0.9.0
Parameters
the starting index at which to add the elements
the collection containing elements to add
Throws
if the specified index is out of bounds
Deprecated
Use 'add_all' instead
Add all elements from another collection to the end of this collection.
If this collection does not allow duplicates, then only those elements not already contained in this collection are added.
Alias
Return
true
if any elements were added to this collection, false
if it was not modified
Since
0.9.0
Parameters
the collection of elements to add